﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.models.world.vos {

    public class MissionVO {

        private var _tasks:Array;
        private var _id:String;
        private var _code:String;
        private var _coins:int;
        private var _xp:int;
        private var _isNew:Boolean;// = false
        private var _isLevelMission:Boolean;// = false

        public function MissionVO(_arg1:String, _arg2:String, _arg3:int, _arg4:int, _arg5:Boolean){
            this._tasks = [];
            super();
            this._id = _arg1;
            this._code = _arg2;
            this._coins = _arg3;
            this._xp = _arg4;
            this._isLevelMission = _arg5;
        }
        public function get id():String{
            return (this._id);
        }
        public function get code():String{
            return (this._code);
        }
        public function get coins():int{
            return (this._coins);
        }
        public function get xp():int{
            return (this._xp);
        }
        public function get tasks():Array{
            return (this._tasks);
        }
        public function addTask(_arg1:TaskVO):void{
            this._tasks.push(_arg1);
        }
        public function get isSolved():Boolean{
            var _local1:TaskVO;
            for each (_local1 in this._tasks) {
                if (!_local1.isFinished){
                    return (false);
                };
            };
            return (true);
        }
        public function get isNew():Boolean{
            return (this._isNew);
        }
        public function set isNew(_arg1:Boolean):void{
            this._isNew = _arg1;
        }
        public function get isLevelMission():Boolean{
            return (this._isLevelMission);
        }
        public function set isLevelMission(_arg1:Boolean):void{
            this._isLevelMission = _arg1;
        }

    }
}//package net.wooga.pets.models.world.vos 
